import Vue from "vue";
import VueRouter from "vue-router";

// 使用中间件
Vue.use(VueRouter)

const routes = [
  {
    path: '/home',
    component: () => {
      return import("./pages/home.vue")
    }
  },
  {
    path: '/login',
    component: () => {
      return import("./pages/login.vue")
    }
  }

]

const router = new VueRouter({
  routes
})

export default router